package com.excilys.grails
class Album {

    static hasMany = [songs:Song]

    // 1.Attributs simples
    String name
    Date dateCreated
    String description

    static constraints = {
        name(blank:false)
        description (widget:'textarea', nullable:true, blank:false)
    }
}